<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>用户钱包管理</title>
	<meta name="decorator" content="ani"/>
	<script type="text/javascript">

		$(document).ready(function() {
			jp.ajaxForm("#inputForm",function(data){
				if(data.success){
				    jp.success(data.msg);
					jp.go("${ctx}/account/account");
				}else{
				    jp.error(data.msg);
				    $("#inputForm").find("button:submit").button("reset");
				}
			});

		});
	</script>
</head>
<body>
<div class="wrapper wrapper-content">				
<div class="row">
	<div class="col-md-12">
	<div class="panel panel-primary">
		<div class="panel-heading">
			<h3 class="panel-title"> 
				<a class="panelButton" href="${ctx}/account/account"><i class="ti-angle-left"></i> 返回</a>
			</h3>
		</div>
		<div class="panel-body">
		<form:form id="inputForm" modelAttribute="account" action="${ctx}/account/account/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>用户：</label>
					<div class="col-sm-10">
						<sys:gridselect url="${ctx}/member/member/data" id="member" name="member.id" value="${account.member.id}" labelName="member.loginName" labelValue="${account.member.loginName}"
							 title="选择用户" cssClass="form-control required" fieldLabels="登录名|昵称" fieldKeys="loginName|nickName" searchLabels="登录名|昵称" searchKeys="loginName|nickName" ></sys:gridselect>
					</div>
				</div>
				<%--<div class="form-group">--%>
					<%--<label class="col-sm-2 control-label"><font color="red">*</font>投入资金：</label>--%>
					<%--<div class="col-sm-10">--%>
						<%--<form:input path="buy" htmlEscape="false"    class="form-control required isFloatGteZero" readonly="true"/>--%>
					<%--</div>--%>
				<%--</div>--%>
				<%--<div class="form-group">--%>
					<%--<label class="col-sm-2 control-label"><font color="red">*</font>提现金额：</label>--%>
					<%--<div class="col-sm-10">--%>
						<%--<form:input path="tixian" htmlEscape="false"    class="form-control required isFloatGteZero"/>--%>
					<%--</div>--%>
				<%--</div>--%>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>可用余额：</label>
					<div class="col-sm-10">
						<form:input path="yue" htmlEscape="false"    class="form-control required isFloatGteZero"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>可用积分：</label>
					<div class="col-sm-10">
						<form:input path="integral" htmlEscape="false"    class="form-control required isFloatGteZero"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>总动态收益：</label>
					<div class="col-sm-10">
						<form:input path="dynamicProfit" htmlEscape="false"    class="form-control required isFloatGteZero"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>今日动态收益：</label>
					<div class="col-sm-10">
						<form:input path="todayDynamic" htmlEscape="false"    class="form-control required isFloatGteZero"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>团队收益：</label>
					<div class="col-sm-10">
						<form:input path="teamProfit" htmlEscape="false"    class="form-control required isFloatGteZero"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>今日团队收益：</label>
					<div class="col-sm-10">
						<form:input path="todayTeam" htmlEscape="false"    class="form-control required isFloatGteZero"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>总收益：</label>
					<div class="col-sm-10">
						<form:input path="totalProfit" htmlEscape="false"    class="form-control required isFloatGteZero"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>今日总收益：</label>
					<div class="col-sm-10">
						<form:input path="todayProfit" htmlEscape="false"    class="form-control required isFloatGteZero"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>团队业绩：</label>
					<div class="col-sm-10">
						<form:input path="team" htmlEscape="false"    class="form-control required isFloatGteZero"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>团队人数：</label>
					<div class="col-sm-10">
						<form:input path="num" htmlEscape="false"    class="form-control required isIntGteZero"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"><font color="red">*</font>提货券：</label>
					<div class="col-sm-10">
						<form:input path="exchangeCoupon" htmlEscape="false"    class="form-control  isFloatGteZero"/>
					</div>
				</div>
				<%--<div class="form-group">--%>
					<%--<label class="col-sm-2 control-label"><font color="red">*</font>冻结金额：</label>--%>
					<%--<div class="col-sm-10">--%>
						<%--<form:input path="frozenMoney" htmlEscape="false"    class="form-control required isIntGteZero"/>--%>
					<%--</div>--%>
				<%--</div>--%>
				<%--<div class="form-group">--%>
					<%--<label class="col-sm-2 control-label"><font color="red">*</font>释放百分比（%）：</label>--%>
					<%--<div class="col-sm-10">--%>
						<%--<form:input path="releasePercentage" htmlEscape="false"    class="form-control required isIntGteZero"/>--%>
					<%--</div>--%>
				<%--</div>--%>
				
		<c:if test="${mode == 'add' || mode=='edit'}">
				<div class="col-lg-3"></div>
		        <div class="col-lg-6">
		             <div class="form-group text-center">
		                 <div>
		                     <button class="btn btn-primary btn-block btn-lg btn-parsley" data-loading-text="正在提交...">提 交</button>
		                 </div>
		             </div>
		        </div>
		</c:if>
		</form:form>
		</div>				
	</div>
	</div>
</div>
</div>
</body>
</html>